package com.wyl.service.user

import com.wyl.pojo.User

interface UserService {
    /**
     * 用户登录
     */
    fun login(userCode: String, password: String): User?

    /**
     * 根据用户id修改密码
     */
    fun updatePwd(id: Int, pwd: String): Boolean

    /**
     * 查询记录数
     */
    fun getUserCount(username: String?, userRole: Int?): Int

    /**
     * 通过条件查询-userList
     */
    fun getUserList(userName: String?, userRole: Int?, currentPageNo: Int, pageSize: Int): List<User>
}